package com.pactera.madp.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@TableName("sys_org_dept_relation")
@ApiModel(value = "人力资源机构与系统部门关联对象")
@EqualsAndHashCode(callSuper = true)
public class SysOrgDeptRelation extends Model<SysOrgDeptRelation> implements Cloneable{

    @ApiModelProperty(value = "机构id")
    private String hrOrgId;

    @ApiModelProperty(value = "机构名称")
    private String orgName;

    @ApiModelProperty(value = "排序")
    private String orgOrderBy;

    @ApiModelProperty(value = "系统部门id")
    private Integer sysDeptId;

    @Override
    public SysOrgDeptRelation clone() {
        SysOrgDeptRelation relation = null;
        try {
            relation = (SysOrgDeptRelation) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return relation;
    }
}
